package com.yzy.fly.entity.role;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yzy.fly.util.DateUtil;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@TableName("fly_constant_attribute")
public class FlyConstantAttributeEntity {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private String value;
    /**
     * 字符串 数值
     */
    private String type;

    private String classPath;

    private String tag;

    private String subTag;

    private Integer attributeId;

    private Integer modelId;

    private Integer sceneId;

    private Integer systemId;
    @DateTimeFormat(pattern= DateUtil.DateFormatPattern.yyyy_MM_dd_HH_mm_ss)
    @JsonFormat( pattern = DateUtil.DateFormatPattern.yyyy_MM_dd_HH_mm_ss)
    private Date createTime;
    @DateTimeFormat(pattern= DateUtil.DateFormatPattern.yyyy_MM_dd_HH_mm_ss)
    @JsonFormat( pattern = DateUtil.DateFormatPattern.yyyy_MM_dd_HH_mm_ss)
    private Date updateTime;

}
